<%@ Control Language="vb" AutoEventWireup="true" Inherits="SIAVU.Presentacion.ucCustomAppointmentToolTipMiProgramacion" Codebehind="ucCustomAppointmentToolTipMiProgramacion.ascx.vb" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1" Namespace="DevExpress.Web.ASPxEditors"	TagPrefix="dxe" %>

  <link rel="stylesheet" type="text/css" href="../../CSS/CustomToolTip.css" />
  
<div class="cToolTipContainer">
	<div class="cToolTipTopLeftCorner">&nbsp;</div>
	<div class="cToolTipTopSide">&nbsp;</div>
	<div class="cToolTipTopRightCorner">&nbsp;</div>
	<div class="cToolTipClearFlow">&nbsp;</div>

	<div class="cToolTipLeftSide">
		<div class="cToolTipRightSide">
			<div style="padding:5px 15px 10px 15px;">
				<div style="padding-bottom:0px;">
					<div>
						<dxe:ASPxLabel runat="server" ID="lInformacionCompletra" EnableClientSideAPI="true" Font-Size="10pt" Font-Names="Tahoma" ForeColor="black"></dxe:ASPxLabel>
					</div>    
				</div>
			</div>
		</div>
	</div>
	<div class="cToolTipLeftSide cToolTipFooter">
		<div class="cToolTipRightSide">
			<div style="padding:0 1px;">
				<div class="cToolTipSeparatingStrip">&nbsp;</div>
			</div>
			<div style="padding:13px 14px 12px 13px;">
				<div style="float:right; width:50%;">
					<div style="float:right;">
						<dxe:ASPxButton runat="server" ID="btnDelete" Text="Eliminar" EnableClientSideAPI="true" AutoPostBack="false"></dxe:ASPxButton>
					</div>
					<%--<div style="float:right;padding-right:5px;">
						<dxe:ASPxButton runat="server" ID="btnEdit" Text="Editar" EnableClientSideAPI="true" AutoPostBack="false"></dxe:ASPxButton>
					</div>--%>
				</div>
				<%--<div runat="server" id="lblShowMenu" style="cursor:pointer;text-decoration:underline;width:100px;color:#3e6b96;font-family:Tahoma;font-size:9pt;padding-top:4px;">Mostrar Menu</div>--%>
			</div>
		</div>
	</div>
	<div class="cToolTipClearFlow">&nbsp;</div>
	<div class="cToolTipBottomLeftCorner">&nbsp;</div>
	<div class="cToolTipBottomSide">
		<div class="cToolTipBottomSideSizeFixer">&nbsp;</div>
	</div>
	<div class="cToolTipBottomRightCorner">&nbsp;</div>
	<div class="cToolTipClearFlow">&nbsp;</div>
</div>
<script type="text/javascript" id="dxss_">
    ASPxClientAppointmentToolTip = _aspxCreateClass(ASPxClientToolTipBase, {
        Initialize: function() {
//            this.controls.btnEdit.Click.AddHandler(_aspxCreateDelegate(this.OnBtnEditClick, this));
            this.controls.btnDelete.Click.AddHandler(_aspxCreateDelegate(this.OnBtnDeleteClick, this));
//            ASPxClientUtils.AttachEventToElement(this.controls.lblShowMenu, "click", _aspxCreateDelegate(this.OnLblShowMenuClick, this));
        },
        Update: function(data) {
            var apt = data.GetAppointment();
           
            this.apt = apt;
            if (!apt.updated) {
                this.scheduler.RefreshClientAppointmentProperties(apt, AppointmentPropertyNames.Normal, _aspxCreateDelegate(this.OnAppointmentRefresh, this));
                this.controls.lInformacionCompletra.SetText("Cargando...");
            } else {
            this.controls.lInformacionCompletra.SetText(apt.GetDescription());
            }
//            var textInterval = this.ConvertIntervalToString(apt.interval);
//            this.controls.lblInterval.SetText(textInterval);
        },
        OnAppointmentRefresh: function(apt) {
            apt.updated = true;
            this.controls.lInformacionCompletra.SetText(apt.GetDescription());
        },
//        OnButtonDivClick: function(s, e) {
//            this.ShowAppointmentMenu(s);
//        },
//        OnBtnEditClick: function() {
//            this.scheduler.ShowAppointmentFormByClientId(this.apt.GetId());
//            this.Close();
//        },
        OnBtnDeleteClick: function() {
            this.scheduler.DeleteAppointment(this.apt);
        },
//        OnLblShowMenuClick: function(e) {
//            this.ShowAppointmentMenu(e);
//        }
    });    
</script>
